<?xml version="1.0" encoding="LATIN1"?>
<html>
<head metal:use-macro="macro/design.xhtml/head"/>
<body>
    <div id="container">
        <div metal:use-macro="macro/design.xhtml/top" id='header'/>
        <div id="main">
            <div metal:use-macro="macro/design.xhtml/menu" id='menubar'/>
            <div id="content">
                <form action="?submit=apply" name="apply" method="post">
                    <input class="button" type="submit" name="apply" value="Click here to apply"/>
                </form>
                <!--
                <div tal:repeat="offers errors">
                    <p class="error" tal:content="errors"></p>
                </div>
                -->
                <form action="?submit=fav" name="fav" method="post">
                    <table id="offers">
                        <tr>
                        	<!-- <th></th> -->
                            <th>Ref.No</th>
                            <th>Country</th>
                            <th>Employee</th>
                            <th>Studyfield</th>
                        </tr>
                        <tr tal:repeat="offers jobOffers">
                        	<input tal:attributes="value offers/idoffer" type="hidden" name="id"/>
                        	<!-- <td tal:condition="favorites/${offers/idoffer}"><input type="image" src="./design/img/apply-32.png" width="16" height="16" border="0" alt="Apply"/></td> -->
                        	<!-- <td tal:condition="not:favorites/${offers/idoffer}"><input type="image" src="./design/img/apply-32.png" width="16" height="16" border="0" alt="Apply"/></td>-->
                            <td><a href="?submit=offer&amp;offer=${offers/idoffer}" tal:content="offers/refno"></a></td>
                            <td tal:content="offers/country"></td>
                            <td tal:content="offers/name"></td>
                            <td>
                                <ul>
                                    <li tal:repeat="n offerStudyfields/${offers/idoffer}" tal:content="n"></li>
                                </ul>
                            </td>
                        </tr>                    
                    </table>
                </form>
            </div>
        </div>
        <div metal:use-macro="macro/design.xhtml/bottom" id='footer'/>
    </div>
</body>
</html>